package com.evan.webadmin.biz.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.evan.webadmin.biz.dto.ExamPaperDto;
import com.evan.webadmin.biz.model.ExamPaper;

import java.util.List;

/**
 * <p>
 * 试卷表 服务类
 * </p>
 *
 * @author Pavel
 * @since 2025-02-28
 */
public interface IExamPaperService extends IService<ExamPaper> {

    /**
     * 查询试卷 分页
     */
    List<ExamPaper> findExamPaperByTypeAndName(Integer personnelType, Integer moduleType, String paperName);

    /**
     * 新增试卷
     */
    void edit(ExamPaperDto examPaperDto);

    /**
     * 删除
     * @param paperId
     */
    void deleteExamPaper(Long paperId);

    /**
     * 刷新试卷
     * @param
     */
    void refreshExamPaper(Long paperId);

    ExamPaper findById(Long paperId);

    void publish(Long paperId);

    ExamPaper findPublishedPaper(Integer personnelType, Integer moduleType);

    void logicDelete(Long paperId);
}
